package net.wendal.nutzbook.util;

import org.nutz.log.Log;
import org.nutz.log.Logs;

public class Toolkit {

	public static final Log log = Logs.get();
	
	public static String captcha_attr = "nutz_captcha";
	
	public static boolean checkCaptcha(String expected, String actual) {
		if (expected == null || actual == null || actual.length() == 0 || actual.length() > 24)
			return false;
		return actual.equalsIgnoreCase(expected);
	}
	
	public static String _3DES_decode(String key, String token) {
		return token;
	}
}
